package com.example.demo.service.impl;

import com.example.demo.dao.BaseDao;
import com.example.demo.service.BaseServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/10/26 0026.
 */
@Service
public class BaseServiceImpl<T> implements BaseServie<T> {
    @Autowired
    private BaseDao baseDao;

    @Override
    public void saveOrUpdate(T t) {
        baseDao.saveOrUpdate(t);
    }
}
